#!/bin/sh
#

SCRIPT=`readlink -f "$0"`
P=`dirname "$SCRIPT"` # $P/$0
cd $P


for i in `cat gamemodes/states.txt`
do
  NAME=`echo $i | awk -F':' '{print $1}'`
  SHORT=`echo $i | awk -F':' '{print $4}'`
  rm -rfv $NAME/
  rm -vf "serv${SHORT}.cfg"
done

